// pages/notify/notify.js
//logs.js
var mydata = require('../../utils/mydata.js')
Page({
  data: {
    navTab: ["通知", "赞与感谢", "关注"],
    currentNavtab: "0"
  },
  onLoad: function () {

  },
  switchTab: function (e) {
    this.setData({
      currentNavtab: e.currentTarget.dataset.idx
    });
  },
  upper: function () {
    wx.showNavigationBarLoading();
    this.refresh();
    setTimeout(function () {
      wx.hideNavigationBarLoading();
      wx.stopPullDownRefresh();
    }, 2000);
  },
  lower: function () {
    wx.showNavigationBarLoading();
    var that = this;
    setTimeout(function () {
      wx.hideNavigationBarLoading();
      that.nextLoad();
    }, 1000);
  }
})
